package com.demo.nio;

import java.io.IOException;

public class Server {
	private static ServerHandler serverHandler;
	public static void main(String[] args) throws IOException {
		// 运行服务器
		if (serverHandler != null) {
			serverHandler.stop();
		}
		serverHandler = new ServerHandler(8081);
		new Thread(serverHandler, "Server").start();
	}

}
